%if defined('login'):
    %include Base/header name=login
%else:
    %include Base/header
%end
        <div class="col-md-9">
            <div class="jumbotron">
            <form class="form-horizontal" method="POST" action="/login">
                 <div class="row">
                        <div class="col-md- col-md-offset-2">
                            %if defined('err'):
                                <h4><p class="text-error">{{err}}</p></h3>
                            %else:
                                <h4><p class="text-info">Введите, пожалуйста, логин и пароль</p></h4>
                            %end
                         </div>
                  </div>
                        <div class="form-group">
                                <p for="inputEmail1" class="col-lg-2 control-label">Логин</p>
                                    <div class="col-lg-7">
                                            <input type="text" name="name" class="form-control" id="inputEmail1" placeholder="Login">
                                    </div>
                        </div>
                        <div class="form-group">
                                <p for="inputPassword1" class="col-lg-2 control-label">Пароль</p>
                                    <div class="col-lg-7">
                                            <input type="password" name="password" class="form-control" id="inputPassword1" placeholder="Password">
                                     </div>
                        </div>
                        <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                        <button type="submit" class="btn btn-primary btn-sm">Авторизоваться</button>
                                 </div>
                           </div>
            </form>
            </div>
         </div>
        </div>
     </div>
%include Base/footer
